package cn.calm.linksource.provider;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.calm.commons.provider.RequestProvider;
import cn.calm.entity.LinkSource;
import cn.calm.linksource.service.ILinkSourceService;

public class LinkSourceRequestProvider implements RequestProvider{
	private ILinkSourceService<LinkSource> service;

	@Override
	public Map<String, Object> provider() {
		LinkSource ls= new LinkSource();
		List<LinkSource> list = service.list(ls);
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("linkSourceList", list);
		return map;
	}

	public ILinkSourceService<LinkSource> getService() {
		return service;
	}

	public void setService(ILinkSourceService<LinkSource> service) {
		this.service = service;
	}

}
